<%include file="header.tpl"/>
<div class="main">
		<div class="left">
		%for dairy in dairies:
				<div class="article">
					<div class="articletitle">
						<h2><a href="/blog/${dairy.year}/${dairy.month}/${dairy.day}/${dairy.url}.html">${dairy.title}</a></h2>
					</div>
					<div class="belowtitle">
						<span>${dairy.time.strftime('%Y-%m-%d %H:%M:%S')}</span>
						<span>${dairy.readtimes}次阅读</span>
						<span style="float:right; margin-top:5px;">${dairy.comments}条评论</span>
					</div>
					<div class="articlecontext">
					%if dairy.briefview:
						${dairy.briefview}<br /><span><a href="/blog/${dairy.year}/${dairy.month}/${dairy.day}/${dairy.url}.html">查看详细</a></span>
					%else:
						${dairy.content}
					%endif
					</div>
					<div class="category">
					<span style="color:#000">分类：</span>
					<span><a href="/blog/category/${dairy.category}">${dairy.category}</a></span>
					</div>
					<div class="tags">
					<span style="color:#000">标签：</span>
					%for tag in dairy.tag:
					<span><a href="/blog/tag/${tag}">${tag}</a></span>
					%endfor
					</div>
				</div>
		%endfor
			<div class="pager2">
				%if link['prev']:
					<a href="/blog/page/${link['page_index']-1}">上一页</a>
				%endif
				<span>第${num}页，共${link['last']}页</span>
				%if link['next']:
					<a href="/blog/page/${link['page_index']+1}">下一页</a>
				%endif
			</div>
		</div>
    
<%include file="sidebar.tpl"/>			
</div>
<%include file="footer.tpl"/>